package com.algo.pattern.state;

/**
 * 订单状态抽象基类
 */
public abstract class AbstractOrderState implements OrderState {

    /**
     * 状态流转
     */
    @Override
    public void doTransaction() {

    }

    /**
     * 默认不可取消
     * @return
     */
    @Override
    public boolean canCancel() {
        return false;
    }

    /**
     * 默认不可售后
     * @return
     */
    @Override
    public boolean canAfterSale() {
        return false;
    }
}
